package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;

/**
 * 游记评论表
 */
@Getter
@Setter
public class TravelReview extends BaseDomain{
    //用户
    private User user;
    //评论时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date createTime;
    //评论内容
    private String content;
    //评论游记
    private Travel travel;
    //是否浏览
    private Integer brower;
}